package ${cfg.appService};

import ${package.Entity}.${entity};
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
 * <p>
 * ${table.comment!} dubbo接口类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${cfg.appServiceName}
<#else>
public interface ${cfg.appServiceName} {

    /**
      * 根据id获取数据
      * @param id
      * @return ${entity}
      */
     ${entity} findById(String id);


    /**
	 * 分页查询
	 * @param page
	 * @param query
	 * @return
	 */
	IPage<${entity}> selectPage(Page<${entity}> page, ${entity} query);

}
</#if>
